import globalSetting from '/@/enums/globalSetting';

export interface GrowCardItem {
  icon: string;
  title: string;
  value: string;
  // total: number;
  // color: string;
  // action: string;
  type: string;
  auth: string;
}

export const growCardLists: GrowCardItem[] = [
  {
    title: '图纸关联工艺',
    icon: 'process|svg',
    value: '指定图纸加工工艺路线',
    type: globalSetting.workScanEnum.GLGY,
    auth: 'm8:scan:route',
  },
  {
    title: '流程完工登记',
    icon: 'process|svg',
    value: '订单流程完成时登记',
    type: globalSetting.workScanEnum.LCWGDJ,
    auth: 'm8:scan:over',
  },
  {
    title: '编程',
    icon: 'code|svg',
    value: '编程结束后上传数铣工艺及图纸文件',
    type: globalSetting.workScanEnum.BC,
    auth: 'm8:scan:bc',
  },
  {
    title: '检验登记',
    icon: 'check|svg',
    value: '工序检验结果登记',
    type: globalSetting.workScanEnum.JYDJ,
    auth: 'm8:scan:check',
  },
  {
    title: '外协发料',
    icon: 'faliao|svg',
    value: '外协工序材料发出登记',
    type: globalSetting.workScanEnum.WXFL,
    auth: 'm8:scan:wxout',
  },
  {
    title: '发货登记',
    icon: 'fahuo|svg',
    value: '成品发给客户时登记',
    type: globalSetting.workScanEnum.FHDJ,
    auth: 'm8:scan:fh',
  },
  {
    title: '外协收料',
    icon: 'shou|svg',
    value: '外协回厂登记',
    type: globalSetting.workScanEnum.WXSL,
    auth: 'm8:scan:wxin',
  },
  {
    title: '外协退料',
    icon: 'tui|svg',
    value: '外协发出材料退回登记',
    type: globalSetting.workScanEnum.WXTL,
    auth: 'm8:scan:wxback',
  },
  {
    title: '退货登记',
    icon: 'tui|svg',
    value: '外协发出材料退回登记',
    type: globalSetting.workScanEnum.THDJ,
    auth: 'm8:scan:th',
  },
  {
    title: '批量检验',
    icon: 'check|svg',
    value: '工序批量检验结果登记',
    type: globalSetting.workScanEnum.PLJY,
    auth: 'm8:scan:check',
  },
  {
    title: '批量完工',
    icon: 'process|svg',
    value: '订单流程批量完工',
    type: globalSetting.workScanEnum.PLWG,
    auth: 'm8:order:flow:batchOver',
  },
  {
    title: '图纸复投',
    icon: 'process|svg',
    value: '自动关联历史图纸对应的工艺及数铣配置',
    type: globalSetting.workScanEnum.FT,
    auth: 'm8:scan:route',
  },
  // {
  //   title: '机床完工登记',
  //   icon: 'bed|svg',
  //   value: '机床任务完成时数量登记',
  //   // total: 500000,
  //   // color: 'blue',
  //   // action: '日',
  //   type: globalSetting.workScanEnum.JCWGDJ,
  //   url: '/desktop/about',
  //   auth: 'm8:order:view',
  // },
];
